package records

import (
	"github.com/golib/mysql"
)

const RecordNameOnlineClassInfo = "online_class_info"

func init() {
	var r = &OnlineClassInfo{}
	mysql.RegisterRecord(r.Name(), r)
}

type OnlineClassInfo struct {
	ClassId         int    `primary:"true" modify:"false" json:"classId" form:"classId" column:"class_id"`
	ClassName       string `column:"class_name" modify:"true" json:"className" form:"className"`
	Grade           int    `column:"grade" modify:"true" json:"grade" form:"grade"`
	TeacherId       int    `json:"teacherId" form:"teacherId" column:"teacher_id" modify:"true"`
	StudentCount    int    `form:"studentCount" column:"student_count" modify:"true" json:"studentCount"`
	TermId          int    `json:"termId" form:"termId" column:"term_id" modify:"true"`
	CreateTime      string `form:"createTime" column:"create_time" modify:"false" json:"createTime"`
	UpdateTime      string `json:"updateTime" form:"updateTime" column:"update_time" modify:"false"`
	Status          int    `json:"status" form:"status" column:"status" modify:"true"`
	CourseStartTime string `json:"courseStartTime" form:"courseStartTime" column:"course_start_time" modify:"true"`
	CourseEndTime   string `json:"courseEndTime" form:"courseEndTime" column:"course_end_time" modify:"true"`
	Capacity        int    `json:"capacity" form:"capacity" column:"capacity" modify:"true"`
	CourseCount     int    `json:"courseCount" form:"courseCount" column:"course_count" modify:"true"`
	EnrollStartTime string `json:"enrollStartTime" form:"enrollStartTime" column:"enroll_start_time" modify:"true"`
	EnrollEndTime   string `json:"enrollEndTime" form:"enrollEndTime" column:"enroll_end_time" modify:"true"`
}

func (r *OnlineClassInfo) Name() string {
	return RecordNameOnlineClassInfo
}
